import java.util.Scanner;

public class Test {
    public static int fibona(int n) {
        if (n==1||n==2){
            return 1;
        }
        int tmp = fibona(n-1)+fibona(n-2);
        return tmp;
    }

    public static void main(String[] args) {
        System.out.println(fibona(1));
        System.out.println(fibona(3));
    }
    public static int sum2z(int a,int b) {
        int c;
        return c=a+b;
    }

    public static double sum3x(double a,double b,double c) {
        double d = a+b+c;
        return d;
    }

    public static void main4(String[] args) {
        int a =sum2z(5,6);
        double b = sum3x(1.5,5.6,3.1415);
        System.out.println(a);
        System.out.println(b);
    }
    public static void double3(double a,double b,double c) {//三个小数中的最大值
        /*double d = a>b?a:b;
        double max = d>c?d:c;
        System.out.println(max);*///使用条件运算符来实现
        /*if (a>b && a>c){
            System.out.println(a);
        }else if (b>a && b>c){
            System.out.println(b);
        }else if (c>b && c>a){
            System.out.println(c);
        }*///使用if语句实现
        double e = Math.max(c,Math.max(a,b));
        System.out.println(e);//使用math类实现
    }

    public static void main3(String[] args) {
        double3(0.5,15.6,85.4);
    }
    public static int max2(int a,int b) {//返回两个整数中的最大值
        if(a<b){
            return b;
        }else{
            return a;
        }
    }

    public static int max3(int a,int b,int c) {//返回三个整数中的最大值
        int d = max2(a,b);
        if(d<c){
            return c;
        }else{
            return d;
        }
    }

    public static void main2(String[] args) {
        int e = max3(3,55,1888);
        System.out.println(e);
    }
    public static void Way01(int x) {//输出n的乘法表，n为输入值
        for (int a = 1;a <= x;a++){
            for (int b = 1;b <= a;b++){
                int c = a*b;
                System.out.print(a+"*"+b+"="+c+" ");
            }
            System.out.println();
        }
    }

    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int c = scanner.nextInt();
        Way01(c);
    }
}
